import service from '@/utils/request'


/**
 * 登录
 * @returns
 */
export function login(username,password) {
    return service({
        url: '/login',
        method: 'post',
        params: {
            username,
            password
        }
    })
}
/**
 * 访问hello
 * @returns
 */
export function hello() {
    return service({
        url: '/hello',
        method: 'get',
    })
}
/**
 * 访问vip
 * @returns
 */
export function vip() {
    return service({
        url: '/vip',
        method: 'get',
    })
}
/**
 * 退出
 * @returns
 */
export function exit() {
    return service({
        url: '/logout',
        method: 'get',
    })
}